package com.guqinghan.guqinghan_11_mv_1;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.MediaController;
import android.widget.VideoView;

public class VideoviewActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_videoview);
        VideoView videoView = findViewById(R.id.vd_view);
        videoView.setVideoPath("/sdcard/Movies/绝世极品.mp4");
        videoView.start();
        videoView.setMediaController(new MediaController(this));
    }
}
